package com.rt.easyjava.base.biz1.service.impl;//package com.rt.easyjava.base.service.impl;
//
//import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
//import com.rt.easyjava.base.service.intf.DfsHisFileBizService;
//import com.rt.easyjava.base.utils.DfsService;
//import com.rt.easyjava.common.base.Result;
//import com.rt.easyjava.common.utils.others.StringUtils;
//import lombok.extern.slf4j.Slf4j;
//import org.apache.ibatis.builder.annotation.ProviderMethodResolver;
//import org.apache.ibatis.session.SqlSession;
//import org.mybatis.spring.SqlSessionTemplate;
//import org.springframework.stereotype.Service;
//
//import javax.annotation.Resource;
//import java.sql.Connection;
//import java.sql.SQLException;
//import java.sql.Statement;
//import java.util.List;
//import java.util.Map;
//
//@Service
//@Slf4j
//public class DfsHisFileBizServiceImpl extends ServiceImpl implements DfsHisFileBizService, ProviderMethodResolver {
//
//    @Resource
//    private DfsService dfsService;
//
//    @Resource
//    private SqlSessionTemplate sessionTemplate;
//
//    @Override
//    public Result batchClear(Map<String, String> params) {
//        //目标数据表的列名(图片地址);
//        String columns = params.get("columns");
//        //目标数据所在的表名
//        String table = params.get("table");
//        String originDataHandle = params.get("originDataHandle");
//
//        if (StringUtils.isNull(columns) || StringUtils.isNull(table)) {
//            return Result.builder().fault("目标数据的列名、表名不能为空！");
//        }
//        if (StringUtils.isNull(originDataHandle)) {
//            originDataHandle = "update";
//        }
//
//        return null;
//    }
//
//    public List<String> getData(String columns,String table,String where) {
//        try {
//            SqlSession sqlSession = this.sessionTemplate.getSqlSessionFactory().openSession();
//            Connection connection = sqlSession.getConnection();
//            Statement statement   = connection.createStatement();
//            statement.execute("select " + columns + "from " + table + " " + where);
//
//
//
//        } catch (SQLException throwables) {
//            log.error("dfs文件管理：查询数据发生错误，错误信息:{}", throwables);
//        }
//
//        return null;
//    }
//
//}
